package ynu.edu.api.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;
import ynu.edu.api.client.fallback.CartClientFallbcakFactory;

import java.util.Collection;

@FeignClient(value = "cart-service", fallbackFactory = CartClientFallbcakFactory.class)
public interface CartClient {
    @DeleteMapping("/carts")
    void deleteCartItemByIds( @RequestParam("userId") Long userId , @RequestParam("ids") Collection<Long> ids);
}